package org.novelhibernate.core;

import java.lang.reflect.Method;

/**
 * Index here is start from 0
 * @author Tao Chen
 *
 */
public class ParameterMapper {

	// The actual value or the alias identifier (String, e.g. id, category.name)
	private Object parameter;
	private int index;
	// The preparedStatement method, use when this is a
	// static parameter, this is no need for alias mapper
	private Method preparedStatementSetMethod;
	
	
	
	public Method getPreparedStatementSetMethod() {
		return preparedStatementSetMethod;
	}
	public void setPreparedStatementSetMethod(Method method) {
		this.preparedStatementSetMethod = method;
	}
	public ParameterMapper(Object parameter, int index) {
		super();
		this.parameter = parameter;
		this.index = index;
	}
	public Object getParameter() {
		return parameter;
	}
	public void setParameter(Object parameter) {
		this.parameter = parameter;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
}
